#include "Item.h"
#include "Area.h"
#include "Ant.h"
#include "Food.h"
#include "Anthill.h"
#include <typeinfo>




CItem::CItem(void) : m_iActID(0)
{

}


CItem::~CItem(void)
{
}


void CItem::act(int id)
{
}

//Setting Position of Item
void CItem::SetPosition(CArea* inArea)
{
	this->Position=inArea;
}	

//Returning Posistion of Item
CArea* CItem::GetPosition()
{
	return this->Position;
}

//Returning Class Type of Item
int CItem::GetType(){

	if(typeid(CAnt)==typeid(*this)){
		return 1;
	}

	else if(typeid(CFood)==typeid(*this)){
		return 2;
	}

	else if(typeid(CAnthill)==typeid(*this)){
		return 3;
	}

	else{
		return 0;
	}

	
	
}

//Returning Name of Item Class
const char* CItem::GetName(){

	return typeid(*this).name();
}